﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Collections.Specialized;
using System.Linq;
using System.Text;

namespace MDCAdminTool
{
    public class NameValue : INotifyPropertyChanged
    {
        private string _Name;
        private long _Value;
        
        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }
        public long Value
        {
            get { return _Value; }
            set { _Value = value; }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler  PropertyChanged;

        private void OnPropertyChanged( string prop )
        {
            if( PropertyChanged != null )
            {
                PropertyChanged( this , new PropertyChangedEventArgs( prop ) );
            }
        }

        #endregion
    }
}
